<% provide(:title, @tag.name) %>
<h1><%= t('activerecord.models.tag', count: 1).capitalize %>: <%= @tag.name %></h1>
<p>
	<%= t('tag.show.synonyms') %>: <%= @tag.synonyms %>
</p>

<p>
	<%= will_paginate @documents %>

	<ul class="documents">
		<% if @documents.each do |document| %>
			<%= render document %>
		<% end.empty? %>
			<%= t('content.list.no_elements', elements: t('activerecord.models.document', count: 2)) %>
		<% end %>
	</ul>

	<%= will_paginate @documents %>
</p>
